﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function(config) {
    //config.skin = "v2";
    config.resize_enabled = false;
    config.startupOutlineBlocks = true;
    //最大化时漂浮的层
    config.baseFloatZIndex = 50;
    //默认文字样式
    config.font_names = "宋体;黑体;隶书;微软雅黑;华文行楷;华文新魏;幼圆;华文琥珀;华文彩云;方正姚体;" +
    'Arial/Arial, Helvetica, sans-serif;' +
	'Comic Sans MS/Comic Sans MS, cursive;' +
	'Courier New/Courier New, Courier, monospace;' +
	'Georgia/Georgia, serif;' +
	'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
	'Tahoma/Tahoma, Geneva, sans-serif;' +
	'Times New Roman/Times New Roman, Times, serif;' +
	'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
	'Verdana/Verdana, Geneva, sans-serif';
    config.toolbar = "Full";
    //所有工具样式
    config.toolbar_Full =
    [
        ['Source', '-', 'Save', /* 'NewPage', */'Preview', '-', 'Templates'],
        ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'/*, '-', 'Print', 'SpellChecker', 'Scayt'*/],
        ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
      //[/*'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'*/],
         ['Maximize', 'ShowBlocks', '-', 'About'],
        '/',
        ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'],
        ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
        ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
        ['Link', 'Unlink', 'Anchor'],
        ['Image', 'Flash'/*, 'Audio', 'Vudio'*/, 'Table', 'HorizontalRule', /* 'Smiley', 'SpecialChar',*/'PageBreak'],
        '/',
        [/*'Styles',*/'Format', 'Font', 'FontSize'],
        ['TextColor', 'BGColor']
    ];
    //简单样式
    config.toolbar_Basic =
    [
        ['Source', 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'Blockquote', 'ShowBlocks', '-', 'About']
    ];
    //文件上传
    config.filebrowserBrowseUrl = '/WebResources/ckfinder/ckfinder.html';
    config.filebrowserImageBrowseUrl = '/WebResources/ckfinder/ckfinder.html?Type=Images';
    config.filebrowserFlashBrowseUrl = 'WebResources/ckfinder/ckfinder.html?Type=Flash';
    config.filebrowserUploadUrl = '/WebResources/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
    config.filebrowserImageUploadUrl = '/WebResources/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
    config.filebrowserFlashUploadUrl = '/WebResources/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
    config.removePlugins = "elementspath";
};
